import './assets/main.css'
import '@fortawesome/fontawesome-free/css/all.min.css';

import {createApp} from 'vue'
import {createPinia} from 'pinia'

import ElementPlus from 'element-plus'
import {setupElIcons,setupPermission} from "@/plugins"
import { setupStore } from "@/stores";
import App from '@/App.vue'
import router from '@/router'
// 样式
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

const app = createApp(App)

// 全局注册 状态管理(store)
setupStore(app)
// 注册动态路由
setupPermission()
// 全局注册Element-plus图标
setupElIcons(app)

app.use(createPinia())
app.use(router)
app.use(ElementPlus,{ locale: zhCn })
app.mount('#app')
